<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<x:parse xml="${param.xmlstr}" var="xmlData" />

<div class="t_bar">${param.title}</div>

<table class="t_css" width="100%" border="0" cellpadding="0"
       cellspacing="1" id="fundInfo_from">
        <tr style="border:1px solid #B7D1E6">

            <td class="TblHead" align="center"  width="60px">序号</td>
            <td class="TblHead" align="center"  width="250px">时间</td>
            <td class="TblHead" align="center"  >年度实施内容和考核指标（包括拟组织的重要学术交流活动、国际合作与交流计划等）</td>
        </tr>
        <c:set value="0" var="index" scope="page"/>
        <x:forEach select="$xmlData/data/milestones/milestone" var="milestone">

            <c:choose>
                <c:when test="${index<10}" ><c:set value="0" var="flag" scope="page"/></c:when>
                <c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
            </c:choose>
            <tr >

                <td align="center">
                    <x:out  select="$milestone/@seq_no"/>
                </td>
                <td align="center">
                    <c:set var="stage"><x:out  select="$milestone/@seq_no"/></c:set>
                    <c:set var="zwNum" value="零,一,二,三,四,五,六,七,八,九,十"/>
                    <c:set var="zwNumArr" value="${fn:split(zwNum, ',')}" />
                    <c:forEach items="${zwNumArr}" var="item" varStatus="index">
                        <c:set var="stage" value="${fn:replace(stage,index.index,item)}" />
                    </c:forEach>
                    第${stage}阶段<br/>
                    <c:set var="startDate">
                        <x:out select="$milestone/start_date" />
                    </c:set>
                    <c:set var="endDate">
                        <x:out select="$milestone/end_date" />
                    </c:set>
                    <c:set var="temp">${fn:substring(startDate,0,10) }</c:set>
                    <c:set var="temp1">${fn:substring(endDate,0,10) }</c:set>
                        ${fn:split(temp,'-')[0]}年${fn:split(temp,'-')[1]}月${fn:split(temp,'-')[2]}日至
                        ${fn:split(temp1,'-')[0]}年${fn:split(temp1,'-')[1]}月${fn:split(temp1,'-')[2]}日
                <%--  ${fn:split(temp1,'-')[2]}日 --%>
                </td>
                <td>
                    <x:out escapeXml="false" select="$milestone/content_hidden"/>
                </td>
            </tr>
            <c:set value="${index+1}" var="index" scope="page"/>
        </x:forEach>
    </table>